import { Component, OnInit, ViewChild } from '@angular/core';
import { SchoolListComponent } from '../school-list/school-list.component';

@Component({
  selector: 'app-school-view',
  templateUrl: './school-view.component.html',
  styleUrls: ['./school-view.component.less'],
})
export class SchoolViewComponent implements OnInit {
  /**
   * 详情组件
   */
  @ViewChild('schoolListComponent', null)
  schoolListComponent: SchoolListComponent;

  constructor() {}

  ngOnInit() {}

  /**
   * 新增
   */
  add(): void {
    this.schoolListComponent.create();
  }
}
